package com.ktjy.mapper;

import com.ktjy.pojo.StorageRecord;
import com.ktjy.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface StorageRecordMapper {
    public List<StorageRecord> selectStorageRecord(@Param("supplierId") Integer supplierId,
                                                   @Param("payStatus") Integer payStatus,
                                                   @Param("goodsName") String goodsName);

    public List<Supplier> selectSupplier(@Param("supCode") String supCode,
                                         @Param("supName") String supName);

    public List<Supplier> selectsSupplier(@Param("supName") String supName,
                                          @Param("supCode") String supCode,
                                          @Param("supContact") String supContact,
                                          @Param("createdTime") Date createdTime);

    public List<StorageRecord> selectStorageRecord4(List<Integer> supplierIds);

    public List<StorageRecord> selectStorageRecord5(Map<String,Object> param);

    public int updateSupplier(Supplier supplier);

    public int updateSupplier7(Supplier supplier);

    public List<StorageRecord> select(@Param("pageBegin") Integer pageBegin,
                                      @Param("pageSize") Integer pageSize);
}
